package com.wealth.merchant.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "t_merchant_merchant_pic")
public class MerchantPic implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String picurl;
	private Merchant merchant;
	
	
	/* ---------------- method ----------------*/	
	@ManyToOne
	@JoinColumn(name = "merchant_id")
	public Merchant getMerchant() {
		return merchant;
	}

	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}

	public MerchantPic(){
		
	}
	
	public MerchantPic(Long id){
		this.id=id;
	}
	
	/* ---------------- getter/setter ----------------*/
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "picurl")
	public String getPicurl() {
		return picurl;
	}
	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}

	

	
	

}
